<link rel="stylesheet" type="text/css" href="<?php echo $this->webroot.'/misc/jqplot/';?>jquery.jqplot.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->webroot.'/misc/jqplot/';?>examples.css" />
<script language="javascript" type="text/javascript" src="<?php echo $this->webroot.'/misc/jqplot/';?>jquery.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->webroot.'/misc/jqplot/';?>jquery.jqplot.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->webroot.'/misc/jqplot/';?>/plugins/jqplot.pieRenderer.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    plot1 = $.jqplot('pie1', [[<?php echo $show;?>]], {
        gridPadding: {top:0, bottom:38, left:0, right:0},
      seriesDefaults:{renderer:$.jqplot.PieRenderer, trendline:{show:false}, rendererOptions: { padding: 8, showDataLabels: true}},
                  legend:{
                      show:true,
                      placement: 'outside',
                      rendererOptions: {
                          numberRows: 1
                      },
                      location:'s',
                      marginTop: '15px'
                  }
    });
});
</script>
<style type="text/css">
    div.jqplot-target { margin-bottom: 45px; }
</style>
<div id="pie1" style="margin-top:20px; margin-left:20px; width:450px; height:250px;"></div>